<script>
	import {
		getCompanyList
	} from '@/api/institutional.js';
	import store from '@/store/index.js';
	import util from '@/lib/util.js';
	export default {
		onLaunch: async function () {
			util.wxAppidToCompanyCode()
		},
		onShow: async function() {
			let res = await getCompanyList();
			let company = res.data.data.filter(item => {
				if (item.code == store.state.companyCode) {
					return item
				}
			})
			uni.setStorageSync('customerService', company[0].customerService)
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang="scss">
	@import 'uview-ui/theme.scss';
	@import 'uview-ui/index.scss';
	@import 'uview-ui/iconfont.css';
	@import './style.scss';
	@import './static/iconfont.css';

	.uni-checkbox-input:hover {
		border-color: #d1d1d1 !important;
	}
</style>
